package com.yungu.swift.base.model.admin;

import com.yungu.swift.utils.StringUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * jwt 保存传入公共参数
 *
 * @author : cuixiuyin
 * @date : 2019/6/13
 */
@ApiModel
public class AdminParam implements Serializable {

    @ApiModelProperty(hidden = true)
    private String userUuid;

    @ApiModelProperty(hidden = true)
    private String appid;

    @ApiModelProperty(hidden = true)
    private String userAgentUuid;

    @ApiModelProperty(hidden = true)
    private String userCompanyUuid;

    @ApiModelProperty(hidden = true)
    private String userip;

    @ApiModelProperty(hidden = true)
    private String userRoleUuid;

    @ApiModelProperty(value = "用户类型（0：管理员 1：主账号、2：子账号）", hidden = true)
    private Integer userType;

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getUserAgentUuid() {
        // 空字符串当作 null 处理
        if (StringUtils.isEmpty(userAgentUuid)) {
            return null;
        }
        return userAgentUuid;
    }

    public void setUserAgentUuid(String userAgentUuid) {
        this.userAgentUuid = userAgentUuid;
    }

    public String getUserCompanyUuid() {
        // 空字符串当作 null 处理
        if (StringUtils.isEmpty(userCompanyUuid)) {
            return null;
        }
        return userCompanyUuid;
    }

    public void setUserCompanyUuid(String userCompanyUuid) {
        this.userCompanyUuid = userCompanyUuid;
    }

    public String getUserip() {
        return userip;
    }

    public void setUserip(String userip) {
        this.userip = userip;
    }

    public String getUserRoleUuid() {
        return userRoleUuid;
    }

    public void setUserRoleUuid(String userRoleUuid) {
        this.userRoleUuid = userRoleUuid;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }
}
